import React from 'react';
import { DeviceEntityRange } from './../utils/types';

interface EditorConext {
    onEntityChange: Function
    getCurrentEntityOffsetWidth: (deviceEntityRange: DeviceEntityRange) => number
    setCurrentEntityOffsetWidth: (newDeviceEntityRange: DeviceEntityRange) => void
}


const EditorContext = React.createContext<EditorConext>(null);


export default EditorContext;